class Student {
  constructor(name) {
    this.name = name;
  }

  eat() {
    console.log(this.name + '吃饭');
  }

  render() {
    return {
      eat22: this.eat,
    };
  }
}

let a = new Student('xiaoming');

let aa = a.render();

aa.eat22(); // undefined吃饭
